// 二级 dim 选择器

export const currentDimSelector = (state, dimId) => {
  const dims = state.label.dims;
  if (!dims || !dimId) return null;
  for (const dim of dims) {
    for (const tag of dim.children) {
      if (tag.id === dimId) return tag;
    }
  }
  return null;
};
